import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import studentMain from '../view/student/studentMain'
import baseInfo from '../view/student/baseInfo'
import historyInfo from '../view/student/historyInfo'
import nowInfo from '../view/student/nowInfo'
import Usermanager from '../view/manager/Usermanager'
import managerMain from '../view/manager/managerMain'
import NosignUser from '../view/manager/NosignUser'
import AllUser from '../view/manager/AllUser'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/student',
      name: 'studentMain',
      component: studentMain,
      children: [
        {path: '/tobase', component: baseInfo},
        {path: '/tohistory', component: historyInfo},
        {path: '/tonow', component: nowInfo}
      ]
    },
    {
      path: '/manager',
      name: 'studentMain',
      component: managerMain,
      children: [
        {path: '/toAlluser', component: AllUser},
        {path: '/toNosign', component: NosignUser},
        {path: '/touser', component: Usermanager}
      ]
    }
  ]
})
